package com.mmall.seckill.controller;

import com.mmall.seckill.common.Result;
import com.mmall.seckill.domain.SeckillUser;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by megan on 2018/6/24.
 */
@Controller
@Slf4j
@RequestMapping("/user/")
public class UserController {

    @RequestMapping("info.do")
    @ResponseBody
    public Result getUserInfo(SeckillUser user){
        return Result.success(user);
    }

}
